package com.ruoyi.job.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author william.zhao
 * @version 1.0
 * @date 2024/09/10/ 22:05
 * @since jdk-17.0.2
 */
@Slf4j
@Component("homeTask")
public class HomePageTask {
    private DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public void freshHome() {
        log.info("Fresh home in: {}", df.format(new Date()));
    }
}
